package com.example.netty.io.core

import io.netty.channel.Channel
import io.netty.channel.ChannelHandlerContext

/**
 * File Name :IMessageListener
 * Author : qihualu
 * Date : 2024/4/12
 * Desc :
 **/

interface IMessageListener {
    fun onMessageArrived(channel: Channel, message: String)
    fun onEventArrived(channel: Channel, type: EventType)
    fun getHeartbeat(): ByteArray
}